<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>档案管理系统</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <jsp:include page="/inc/head.jsp" flush="true"/>
    <jsp:include page="/inc/footer.jsp" flush="true"/>
</head>
<body class="hold-transition skin-blue sidebar-mini" >
<input type="text" id="userId" value="" hidden>
<div class="container">
    <div id="UserDetailModal" class="modal fade bs-example-modal-lg addUpdateInfo" role="dialog" aria-labelledby="myLargeModalLabel">
        <div class="modal-dialog " role="document">
            <div class="modal-content" style="width:600px">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="exampleModalLabel" >个人信息</h4>
                </div>
                <div class="modal-body" style="height: auto;">
                    <table style="width: 90%;">
                        <tr>
                            <td>用户名： <span id="username" class="orderDetailsSpan"></span></td>
                        </tr>
                        <tr>
                            <td>密码： <span id="password" class="orderDetailsSpan">* * * * * *</span></td>
                            <td><a type="submit" href="javascript:void(0)"  onclick="eidtp()" class="btn btn-success" style="height: 25px;width: 70px;font-size: 10px;text-align: center">修改密码</a></td>
                        </tr>
                        <tr>
                            <td>管理员姓名：<span id="pename" class="orderDetailsSpan"></span></td>
                        </tr>
                        <tr>
                            <td>身份证号码： <span id="idcode" class="orderDetailsSpan"></span></td>
                        </tr>
                        <tr>
                            <td>所属部门名称： <span id="mdname" class="orderDetailsSpan"></span></td>
                        </tr>
                        <tr>
                            <td>所属部门代码：<span id="mdcode" class="orderDetailsSpan"></span></td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $.ajax({
            type: "post",
            url: "/pcwindow/getLoginUser",
            dataType:"json",
            success: function(data){
                $("#userId").val(data.userId);
                $("#username").text(data.userName);
                $("#idcode").text(data.userIdcode);
                $("#pename").text(data.userPename);
                $("#mdcode").text(data.userOrgcode);
                $("#mdname").text(data.userOrgname);
                $("#UserDetailModal").modal("show");
            },
        });
        $('#LaunchPayModal').on('hide.bs.modal', function () {
            $(".orderDetailsSpan").empty();
        });

    });
    function  eidtp() {
        window.location.href = '${pageContext.request.contextPath }'+'/pcwindow/modifiedPassword';
    }
</script>
<script src="${basePath }/js/main.js"></script>
</body>
</html>

